<?php
require_once('../includes/SmartyManager.class.php');
require_once('../includes/DB.class.php');
require_once('../includes/Verifier.class.php');
require_once('../includes/Filter.class.php');
require_once('../includes/MonitorFileAccountant.class.php');

$smarty = SmartyManager::getSmarty();

$monitor = new MonitorFileAccountant($_GET['id']);
$smarty->assign('id', $_GET['id']);
$smarty->assign('filename', $_GET['filename']);
$monitor->execute();

$smarty->assign(array('certificationNumber' 	=> 	$monitor->getCertificationNumber(),
				'facheNumber'	=> $monitor->getFacheNumber(),
				'certificationCodification' 		=> 	$monitor->getCertificationCodification(),
				'sequenceNumber' 		=> 	$monitor->getSequenceNumber(),
				'manufactory' 		=> 	$monitor->getManufactory(),
				'authenticationMark' 		=> 	$monitor->getAuthenticationMark(),
				'steelNumber' 		=> 	$monitor->getSteelNumber(),
				'size1' 		=> 	$monitor->getSize1(),
				'size2' 		=> 	$monitor->getSize2(),
				'size3' 		=> 	$monitor->getSize3(),
				'count'	=>	$monitor->getCount(),
				'unitWeight'		=>	$monitor->getUnitWeight(),
				'orderNumber'		=>	$monitor->getOrderNumber(),
				'orderSubitemNumber'		=>	$monitor->getOrderSubitemNumber(),
				'unitPrice'		=>	$monitor->getUnitPrice(),
				'materialNumber'		=>  $monitor->getMaterialNumber(),
				'consignmentBatch'	=>  $monitor->getConsignmentBatch(),
				'sampleBatch'		=>  $monitor->getSampleBatch(),
				'facheNumber'	=>  $monitor->getFacheNumber(),
				'purchaseNumber'	=>  $monitor->getPurchaseNumber(),
				'shipmentDate'	=>  $monitor->getShipmentDate(),
				'month'	=>  $monitor->getMonth(),
				'vehicleNumber'	=>  $monitor->getVehicleNumber(),
				'consignee'	=>  $monitor->getConsignee(),
				'remark'	=>  $monitor->getRemark(),
				'stat'	=> $monitor->getStat(),
				'notInMainCertificationNumber' 	=> 	$monitor->getNotInMainCertificationNumber(),
				'notInMainFacheNumber'	=> $monitor->getNotInMainFacheNumber(),
				'notInMainCertificationCodification' 		=> 	$monitor->getNotInMainCertificationCodification(),
				'notInMainSequenceNumber' 		=> 	$monitor->getNotInMainSequenceNumber(),
				'notInMainManufactory' 		=> 	$monitor->getNotInMainManufactory(),
				'notInMainAuthenticationMark' 		=> 	$monitor->getNotInMainAuthenticationMark(),
				'notInMainSteelNumber' 		=> 	$monitor->getNotInMainSteelNumber(),
				'notInMainSize1' 		=> 	$monitor->getNotInMainSize1(),
				'notInMainSize2' 		=> 	$monitor->getNotInMainSize2(),
				'notInMainSize3' 		=> 	$monitor->getNotInMainSize3(),
				'notInMainCount'	=>	$monitor->getNotInMainCount(),
				'notInMainUnitWeight'		=>	$monitor->getNotInMainUnitWeight(),
				'notInMainOrderNumber'		=>	$monitor->getNotInMainOrderNumber(),
				'notInMainOrderSubitemNumber'		=>	$monitor->getNotInMainOrderSubitemNumber(),
				'notInMainUnitPrice'		=>	$monitor->getNotInMainUnitPrice(),
				'notInMainMaterialNumber'		=>  $monitor->getNotInMainMaterialNumber(),
				'notInMainSampleBatch'		=>  $monitor->getNotInMainSampleBatch(),
				'notInMainFacheNumber'	=>  $monitor->getNotInMainFacheNumber(),
				'notInMainPurchaseNumber'	=>  $monitor->getNotInMainPurchaseNumber(),
				'notInMainShipmentDate'	=>  $monitor->getNotInMainShipmentDate(),
				'notInMainMonth'	=>  $monitor->getNotInMainMonth(),
				'notInMainVehicleNumber'	=>  $monitor->getNotInMainVehicleNumber(),
				'notInMainConsignee'	=>  $monitor->getNotInMainConsignee()
	));

$smarty->display("fileMonitor.html");
?>